// 封装请求Attr的方法
import requestPro from "@/utils/http/requestPro";
import { cartgory1ListType } from "./model/attrType";
const request = requestPro;
// 一级分类列表的方法
export const category1List = () => {
  return request.get<any, cartgory1ListType>(`/admin/product/getCategory1`);
};
// 二级分类列表
export const category2List = (category1Id: number) => {
  return request.get<any, cartgory1ListType>(
    `/admin/product/getCategory2/${category1Id}`
  );
};
